package com.gpzx.zx.module.home.frame.presenter

import com.gpzx.zx.module.home.frame.view.HomeNewsListView
import com.gpzx.zx.module.home.ui.activity.HomeNewsListActivity
import com.gpzx.zx.utlis.QklDbUtlis
import com.wkq.base.frame.mosby.MvpBasePresenter

/**
 *
 * 作者:吴奎庆
 *
 * 时间:2020/7/4
 *
 * 用途:
 */


class HomeNewsListPresenter : MvpBasePresenter<HomeNewsListView>() {
    fun initData(homeNewsListActivity: HomeNewsListActivity, title: String?) {

        var db3 = QklDbUtlis(homeNewsListActivity)
        var gpNews3 = db3.getNewsByType(title)
        if (view != null) view.showList(gpNews3)
    }
}